package com.hackcloud.shardingjdbc.excel;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.fastjson.JSON;
import lombok.Data;

/**
 * 基础数据类
 **/
@Data
public class DocData {
    //@ExcelProperty("序号")
    private String fieldSortNo;

    //@ExcelProperty("名称")
    private String fieldCode;

    //@ExcelProperty("类型")
    private String fieldType;

    //@ExcelProperty("入库类型")
    private String fieldDbType;

    //@ExcelProperty("描述")
    private String fieldDesc;

    //@ExcelProperty("必输")
    private String required;

    //@ExcelProperty("备注")
    private String fieldNote;

    @ExcelIgnore
    private String parentFieldCode;
    @ExcelIgnore
    private String parentFieldSortNo;
    /**
     * 场景号
     */
    @ExcelIgnore
    private String scene;
    /**
     * 产品号
     */
    @ExcelIgnore
    private String productNo;
    /**
     * 参数类型
     */
    @ExcelIgnore
    private String paramType;


    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
